import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        singer:{}
    },
    mutations: {
        saveSingerMutation(state,singer){
            state.singer = singer
        }
    },
    actions: {
        saveSingerAction(context,singer){
            context.commit('saveSingerMutation',singer);
        }
    }
})
export default store
